package com.seednia.module.core.reference.dto;

import java.util.Date;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

import com.seednia.foundation.framework.dto.AbstractRecord;
import com.seednia.foundation.framework.dto.ICriteria;

/**
 * Criteria class for reference
 * 
 * @author Young Suk Ahn
 *
 */
@XmlRootElement(name = "ReferenceCriteria", 
	namespace = "http://seednia.com/core/1.0")
@XmlType(name = "ReferenceCriteria")
@XmlAccessorType(XmlAccessType.PROPERTY)
public class ReferenceCriteria extends ReferenceDto implements ICriteria {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1628582453304142483L;

	@Override
	public Date getCreatedBefore() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Date getCreatedAfter() {
		// TODO Auto-generated method stub
		return null;
	}
	
	@Override
	public void setSearchText(String value)
	{
		throw new UnsupportedOperationException();
	}

	
	/**
	 * To create object from JSONP string
	 * Used by the REST framework when sending this object as parameter
	 * @param jsonStr
	 * @return
	 */
	public static ReferenceCriteria fromString(String jsonStr) {
		ReferenceCriteria retval = (ReferenceCriteria) AbstractRecord.fromString(ReferenceCriteria.class, jsonStr);
		return retval;
	}
}
